

/* BOOTSTRAP'S COMPONENTS */
/*======================================*/
.collapse{
    display: none
}

.jumbotron{
    padding: 30px;
    background-color: darken($body-bg, 3%);
}

.navbar-toggle .icon-bar{
    background-color: #aaaaaa
}

.canvas-responsive{
    max-width: 100%
}



a{
    text-decoration: none;
    color: $link-color;
    outline: 0;
    &:hover,
    &:focus{
        text-decoration: none;
        color: $link-hover-color;
        outline: 0 !important
    }
}
button, button:focus{
    outline: 0 !important
}
code{
    background-color: #e7e3f2;
    color: #ff0000;
    padding: 2px 7px;
    border-radius: 2px;
    font-size: 97%
}
kbd {
    border-radius: 2px;
    box-shadow: none;
}
label{
    font-weight: normal
}
legend{
    padding: 10px;
    font-size: 18px;
    font-weight: $font-semibold;
    border-color: #eee;
}
mark, .mark{
    background-color: #ffe3a2;
    color: #563c00;
    padding: .1em
}

.close{
    font-size: 15px;
}


/* HORIZONTAL RULE */
/*======================================*/
hr{
    border-color: $border-color-base;
}
.hr{
    &-wide{
        margin-left: 0 - ($grid-gutter-width/2);
        margin-right: 0 - ($grid-gutter-width/2);
    }
    &-xs{
        margin: 5px 0
    }
    &-sm{
        margin: 10px 0
    }
}

.new-section{
    &-xs{
        margin: 12px 0;
        min-height: 1px
    }
    &-sm{
        margin: 25px 0;
        min-height: 1px
    }
    &-md{
        margin: 50px 0;
        min-height: 1px
    }
    &-lg{
        margin: 100px 0;
        min-height: 1px
    }
    &-xl{
        margin: 150px 0;
        min-height: 1px
    }
}


/* GRID-GUTTER */
/*======================================*/
.row{
    margin : 0 (0 - ($grid-gutter-width/2));
}
[class^="col-"]:not(.pad-no){
    padding-left: ($grid-gutter-width/2);
    padding-right: ($grid-gutter-width/2);
}




/* MEDIA */
/*======================================*/
.media-block{
    .media-left{
        display: block;
        float: left;
    }
    .media-right{
        float: right;
    }
    .media-body{
        display: block;
        overflow: hidden;
        width: auto
    }
}
.middle{
    .media-left,
    .media-right,
    .media-body{
        vertical-align: middle
    }
}





/* THUMBNAIL */
/*======================================*/
.thumbnail{
    border-radius: $border-radius-base;
    border-color: $border-color-base;
}




/* TABLE */
/*======================================*/
@if $table == true {
    #container{
        .table{
            th{
                font-size: 1.05em;
                font-weight: $font-semibold;
                border-bottom: 1px solid $border-color-base;
                color: $body-main-color
            }
            td{
                border-top: 1px solid $border-color-base;
            }
            &.table-vcenter{
                th, td{
                    vertical-align: middle
                }
            }
            .min-width{
                width: 1%;
                white-space: nowrap;
                padding-left: 15px !important;
                padding-right: 15px !important
            }
        }
        .table-bordered{
            &, td, th{
                border-color: $border-color-base;
            }
        }
        .table-striped > tbody > tr:nth-child(2n+1){
            background-color: lighten($gray-bg, 6%);
        }
        .table-hover > tbody > tr:hover{
            background-color: lighten($gray-bg,4%);
        }
    }
}



 /* FORM CONTROL  */
/*======================================*/
@if $form-control == true {
    .form-control{
        font-size: $font-size-base;
        height: 100%;
        border-radius: $border-radius-base;
        box-shadow: none;
        border: 1px solid $border-color-base;
        transition-duration: .5s;
        &:focus{
            border-color: $state-active-bg;
            box-shadow: none;
            transition-duration: .5s;
            &-feedback{
                z-index: 10
            }
        }
    }


    .has-error .form-control,
    .has-warning .form-control,
    .has-success .form-control{
        box-shadow: none !important
    }

    i.form-control-feedback{
        line-height: 25px
    }

    .input-group-addon{
        border: 1px solid #e1e5ea;
        background-color: transparent;
        border-radius: $border-radius-base;
        min-width: 45px;
    }
}



/* NAV PILLS */
/*======================================*/
@if $nav-pills == true {
    .nav{
        &-pills{
            > li{
                > a{
                    border-radius: $border-radius-base;
                }
            }
            >.active{
                > a{
                    &, &:hover, &:focus{
                        background-color: $primary-bg;
                    }
                }
            }
        }
        &-tabs{
            >li{
                >a{
                    border-radius: $border-radius-base $border-radius-base 0 0
                }
            }
        }
    }
}










/* LIST GROUP */
/*======================================*/

// Mixin
// ----------------------------------------------
@mixin list-variant($color, $background){
    @at-root{
        @at-root a#{&}, &{
            background-color: lighten($background,7%);
            border-color: transparent;
            color: $color
        }
        @at-root a#{&}{
            &:hover, &:focus{
                background-color: lighten($background,10%);
                color: $color
            }
        }
    }
}


@if $list-group == true {
    .list-group{
        &.bg-trans{
            .list-group-item{
                &:not(.active):not(.disabled){
                    background-color: transparent;
                    border-color: transparent;
                    color: inherit
                }
                .disabled{
                    opacity: .5
                }
            }
            a.list-group-item:hover:not(.active){
                background-color: rgba(0,0,0,0.05);
            }
        }
        &.bord-no .list-group-item{
            border-color: transparent
        }
        .list-divider{
            display: block
        }

    }

    %list-group-item{
        color: $body-color;
    }

    %list-group-item-heading{
        color: $body-main-color;
    }

    a.list-group-item, button.list-group-item{
        @extend %list-group-item;
        &:hover, &:focus{
            @extend %list-group-item;
        }
        .list-group-item-heading{
            @extend %list-group-item-heading;
        }
    }

    .list-group-item{
        border-color: $border-color-base;
        @extend %list-group-item;
        &-heading {
            margin-top: 5px;
        }
        &:first-child {
            border-top-left-radius: $border-radius-base;
            border-top-right-radius: $border-radius-base;
        }
        &:last-child {
            border-bottom-left-radius: $border-radius-base;
            border-bottom-right-radius: $border-radius-base;
        }
        .list-group-item.disabled{
            &, &:hover, &:focus{
                background-color: rgba(0,0,0,.07);
                border-color: transparent
            }
        }
        &.active{
            &, &:hover, &:focus{
                background-color: $state-active-bg;
                border-color: $state-active-bg;
                color: $state-active-color;
                .list-group-item-text{
                    color: $state-active-color;
                }
            }
        }
    }
    a.list-group-item:hover, a.list-group-item:focus{
        background-color: rgba(0,0,0,.05);
    }






    // List variant
    // ----------------------------------------------
    .list-group-item-primary{
        @include list-variant($primary-color, $primary-bg)
    }

    .list-group-item-info{
        @include list-variant($info-color, $info-bg)
    }

    .list-group-item-success{
        @include list-variant($success-color, $success-bg)
    }

    .list-group-item-warning{
        @include list-variant($warning-color, $warning-bg)
    }

    .list-group-item-danger{
        @include list-variant($danger-color, $danger-bg)
    }

    @if $enable-mint == true {
        .list-group-item-mint{
            @include list-variant($mint-color, $mint-bg)
        }
    }

    @if $enable-purple == true {
        .list-group-item-purple{
            @include list-variant($purple-color, $purple-bg)
        }
    }

    @if $enable-pink == true {
        .list-group-item-pink{
            @include list-variant($pink-color, $pink-bg)
        }
    }
    @if $enable-dark == true {
        .list-group-item-dark{
            @include list-variant($dark-color, $dark-bg)
        }
    }

}









/* LABEL */
/*======================================*/
@if $label == true {
    .label{
        border-radius: $border-radius-base;
        font-weight: $font-semibold;
        &:empty{
            display: inline-block;
            width: 1.5em;
            height: 1.5em;
            vertical-align: sub;
        }
        &.label-fw{
            margin-right: .5em
        }
        .labels &{
            display: inline-block;
            margin-right: 3px;
            margin-bottom: 3px
        }
        &-md{
            font-size: 100%;
        }
        &-table{
            display: inline-block;
            width: 80%;
            min-width: 8ex;
            font-size: 1em;
            max-width: 100px;
            padding: 5px;
            text-overflow: ellipsis;
            overflow: hidden;
            vertical-align: top
        }
    }


    // Label variant
    // ----------------------------------------------
    .label-default{
        background-color: #e3e8ee;
        color: #333333
    }
    .label-primary{
        background-color: $primary-bg;
    }
    .label-info{
        background-color: $info-bg;
    }
    .label-success{
        background-color: $success-bg;
    }
    .label-warning{
        background-color: $warning-bg;
    }
    .label-danger{
        background-color: $danger-bg;
    }
    @if $enable-mint == true {
        .label-mint{background-color: $mint-bg}
    }
    @if $enable-purple == true {
        .label-purple{background-color: $purple-bg}
    }
    @if $enable-pink == true {
        .label-pink{background-color: $pink-bg}
    }
    @if $enable-dark == true {
        .label-dark{background-color: $dark-bg}
    }
}




 /* BREADCRUMB */
/*======================================*/
@if $breadcrumb == true {
    .breadcrumb{
        border-radius: 0;
        background-color: transparent;
        margin-bottom: 10px;
        padding: 0 $grid-gutter-width;
        li{
            &, & a{
                color: $text-muted
            }

        }
        >li{
            & + li:before{
                content: "\f105";
                display: inline-block;
                font-family: FontAwesome;
                font-style: normal;
                font-weight: normal;
                line-height: 1;
            }
        }
        .active{
            font-weight: normal;
        }
    }
}




/* ALERTS */
/*======================================*/

// Mixin
// ----------------------------------------------
@mixin alert-variant($color, $background){
    background-color: desaturate(lighten($background, 7%), 7%);
    border-color: transparent;
    border-left: 3px solid desaturate(darken($background, 15%), 3%);
    color: $color;
    .close, .alert-link{
        color: $color
    }
}

@if $alert == true {
    .alert{
        border-radius: $border-radius-base;
        border: 0;
        padding: 15px 2em 15px 15px;
        position: relative;
        .alert-link{
            text-decoration: underline;
            font-weight: $font-semibold;
            &:hover{
                text-decoration: underline
            }
        }
    }


    .alert {
        .close{
            font-size: 12.5px;
            text-shadow: none;
            opacity: .7;
            position: absolute;
            left: auto;
            right: 10px;
            top: 10px;
        }
        button.close{
            padding: 1px;
            border-radius: 20px;
            @include transition(all, .3s);
            >span:not(.sr-only){
                display: block;
                width: 1em;
                height: 1em;
                line-height: .8em
            }
            &:hover{
                opacity: .55;
            }
            &:active{
                opacity: .3
            }
        }
    }



    // Alert variant
    // ----------------------------------------------
    .alert-primary{
        @include alert-variant($primary-color, $primary-bg)
    }
    .alert-info{
        @include alert-variant($info-color, desaturate($info-bg, 15%))
    }
    .alert-success{
        @include alert-variant($success-color, $success-bg)
    }
    .alert-warning{
        @include alert-variant($warning-color, $warning-bg)
    }
    .alert-danger{
        @include alert-variant($danger-color, $danger-bg)
    }

    @if $enable-mint == true {
        .alert-mint{@include alert-variant($mint-color, $mint-bg)}
    }
    @if $enable-purple == true {
        .alert-purple{@include alert-variant($purple-color, $purple-bg)}
    }
    @if $enable-pink == true {
        .alert-pink{@include alert-variant($pink-color, $pink-bg)}
    }
    @if $enable-dark == true {
        .alert-dark{@include alert-variant($dark-color, lighten($dark-bg, 10%))}
    }

}





/* MODAL */
/*======================================*/
@if $modal == true {
    .modal{
        text-align: center;
        &:before{
            content: '';
            display: inline-block;
            height: 100%;
            width: 0;
            margin-left: -1em;
            vertical-align: middle;
        }
        &.fade{
            &:not(.animated) .modal-dialog{
                opacity: 0;
                -webkit-transform : translateY(-150%);
                -ms-transform : translateY(-150%);
                transform : translateY(-150%);
                -webkit-transition: all .5s linear .5s;
                transition: all .5s linear .5s;
            }
            &.in:not(.animated) .modal-dialog{
                opacity: 1;
                -webkit-transform : translateY(0%);
                -ms-transform : translateY(0%);
                transform : translateY(0%);
                -webkit-transition: all .5s;
                transition: all .5s;
            }
        }
        @at-root .bootbox#{&}{
            &.in:not(.fade){
                opacity: 1;
                @include transition(opacity, .5s)
            }
            &:not(.fade){
                opacity: 0;
                -webkit-transition: opacity .5s linear .5s;
                transition: opacity .5s linear .5s;
            }
        }
        &-dialog{
            display: inline-block;
            vertical-align: middle;
            text-align: left;
            margin-top: -1%;
            min-width: 90%;
            &.animated{
                -webkit-animation-duration: .7s;
                animation-duration: .7s;
            }
        }
        &-header{
            padding: 15px;
            position: relative;
            border: 0;
            &:after{
                content: '';
                position: absolute;
                display: block;
                bottom: 0;
                left: 0;
                right: 0;
                height: 1px;
                border-bottom: 1px solid rgba(0,0,0,.07)
            }
        }
        &-footer{
            background-color: transparent;
            color: $body-color;
            border-color: rgba(0,0,0,.07);
            border-top-left-radius: $border-radius-base;
            border-top-right-radius: $border-radius-base;
        }
        &-title{
            font-size: 1.2em;
            color: $body-color
        }
        &-body{
            min-height: 90px
        }
        &-body > .close, &-header > .close{
            top: 50%;
            margin-top: -.5em;
            right: 10px;
            left: auto;
            position: absolute;
            background-color: transparent !important
        }
        &-body > .close{
            top: 10px;
            margin-top: 0 !important
        }
        &-content{
            box-shadow: none;
            border-radius: $border-radius-base
        }
        &-footer{
            padding: 10px 15px;
            border-bottom-left-radius: $border-radius-base;
            border-bottom-right-radius: $border-radius-base;
        }
        &-backdrop.in{
            opacity: 0.75
        }
    }



    @media (min-width: 768px){
        .modal-dialog{
            min-width: 0
        }
    }
}






 /* TOOLTIP */
/*======================================*/
@if $tooltip == true {
    .tooltip{
        z-index: 999999;
        &-inner{
            font-size: $font-size-base;
            border-radius: $border-radius-base;
            padding: 5px 10px;
            background-color: $tooltip-bg
        }
        &.top{
            .tooltip-arrow, &-left .tooltip-arrow, &-right .tooltip-arrow{
                border-top-color: $tooltip-bg;
            }
        }
        &.right{
            .tooltip-arrow{
                border-right-color: $tooltip-bg
            }
        }
        &.left{
            .tooltip-arrow{
                border-left-color: $tooltip-bg
            }
        }
        &.bottom{
            .tooltip-arrow, &-left .tooltip-arrow, &-right .tooltip-arrow{
                border-bottom-color: $tooltip-bg
            }
        }
        &.in{
            opacity: 1;
        }
        h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6{
            color: inherit
        }
    }
}





/* POPOVER */
/*======================================*/
@if $popover == true {
    .popover{
        font-family: inherit;
        font-size: $font-size-base;
        border-radius: $border-radius-base;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.15);
        &-title{
            background-color: transparent;
            color: $body-main-color;
            font-size: 1.2em;
            font-weight: $font-semibold;
            border-bottom: 1px solid rgba(0, 0, 0, 0.07);
            border-radius: $border-radius-base $border-radius-base 0 0;
        }
        >.arrow{
            border-width: 9px;
            &:after{
                border-width: 9px;
            }
        }
        &.left{
            >.arrow{
                right: -9px;
                margin-top: -9px;
                &:after{
                    bottom: -9px;
                }
            }
        }
        &.right{
            >.arrow{
                left: -9px;
                margin-top: -9px;
                &:after{
                    bottom: -9px;
                }
            }
        }
        &.top{
            >.arrow{
                bottom: -9px;
                &:after{
                    margin-left: -9px
                }
            }
        }
        &.bottom{
            >.arrow{
                top: -9px;
                &:after{
                    margin-left: -9px
                }
            }
        }
        &-content{
            padding: 10px 15px 20px;
        }
    }
}





/* BADGES */
/*======================================*/
@if $badge == true {
    #container .badge{
        color: #fff;
        font-size: .9em;
        font-weight: $font-semibold
    }

    .badge:empty.badge-icon{
        display: inline-block;
        width: 0.7em;
        height: 0.7em;
        padding: 0;
        min-width: 5px;
        margin: .5em;
        border-radius: 50%;
    }
    .badge.badge-fw, .badge:empty.badge-fw{
        margin-right: 1em
    }
    .badge-stat{
        position: absolute;
        right: 0;
        top: 0;
        margin: 0px 7px 0 0 !important;
        box-shadow: 0 0 0 2px
    }

    .badge-default{
        background-color: #e3e8ee;
        color: #333
    }
    .badge-primary{
        background-color: $primary-bg
    }
    .badge-info{
        background-color: $info-bg
    }
    .badge-success{
        background-color: $success-bg
    }
    .badge-warning{
        background-color: $warning-bg
    }
    .badge-danger{
        background-color: $danger-bg
    }
    @if $enable-mint == true {
        .badge-mint{background-color: $mint-bg}
    }
    @if $enable-purple == true {
        .badge-purple{background-color: $purple-bg}
    }
    @if $enable-pink == true {
        .badge-pink{background-color: $pink-bg}
    }
    @if $enable-dark == true {
        .badge-dark{background-color: $dark-bg}
    }
}





/* DROPDOWN */
/*======================================*/
@if $dropdown == true {
    .dropdown{
        &-header{
            font-weight: $font-semibold;
            font-size: 1.15em;
            color: $body-main-color;
            padding: 5px 20px 5px 10px
        }
        &-toggle{
            > .dropdown-caret{
                display: inline-block;
                width: 0;
                height: 0;
                margin: 0 3px;
                border-style: solid;
                border-width: 6px 4px 0 4px;
                border-left-color: transparent;
                border-right-color: transparent;
                border-bottom-color: transparent;
                vertical-align: middle;
                &.caret-up{
                    border-width: 0 4px 6px 4px;
                    border-bottom-color: initial;
                    border-top-color: transparent
                }
            }
        }
    }



    .dropdown-menu{
        font-size: $font-size-base;
        border-radius: $border-radius-base;
        box-shadow: 0 5px 12px 2px rgba(0, 0, 0, 0.25);
        margin: 0;
        padding: 0;
        border: 0;
        > li > a{
            color: $body-color
        }
        &-right{
            left: auto;
            right: 0
        }
        .dropup &{
            box-shadow: 0 -5px 12px 2px rgba(0,0,0,0.25);
        }
        &:not(.head-list) >li{
            >a{
                padding: 5px 10px;
                &:hover{
                    background-color: $state-active-bg;
                    color: $state-active-color
                }
            }
        }
        &.with-arrow{
            &:before, &:after{
                content: "";
                display: block;
                position: absolute;
                width: 0;
                height: 0;
                left: 0;
                top: 0;
                border-left: 7px solid transparent;
                border-right: 7px solid transparent;
            }
            &:before{
                border-bottom: 7px solid darken($border-color-base, 10%);
                margin: -7px 0 0 15px;
            }
            &:after{
                border-bottom: 7px solid #fff;
                margin: -6px 0 0 15px;
            }
        }
        &-right.dropdown-menu.with-arrow{
            &:before{
                left: auto;
                right: 0;
                margin: -7px 25px 0 0;
            }
            &:after{
                left: auto;
                right: 0;
                margin: -6px 25px 0 0;
            }
        }
    }



    // Sizes
    // ----------------------------------------------
    .dropdown-menu{
        &-sm{
            min-width: 220px;
        }
        &-md{
            min-width: 270px;
        }
        &-lg{
            min-width: 300px;
        }
    }

    .dropdown.open > .btn,
    .btn-group.open .dropdown-toggle{
        box-shadow: inset 0 3px 1px rgba(0, 0, 0, 0.3);
    }

}






/* WELL */
/*======================================*/
@if $well == true {
    .well{
        background-color:  darken($body-bg,2%);
        border-color:  darken($body-bg, 5%);
        border-radius: $border-radius-base;
        box-shadow: none
    }

    .well-xs{
        padding: 5px;
    }
}







/* PROGRESSBAR */
/*======================================*/

// Mixin
// ----------------------------------------------
@mixin progress-sizes($height, $margin-btm, $progress-font-size){
    height: $height;
    margin-bottom: $margin-btm;
    .progress-bar{
        font-size: $progress-font-size;
        line-height: $height;
    }
}

@if $progressbar == true {
    .progress{
        height: 12px;
        margin-bottom: 15px;
        border-radius: $border-radius-base;
        box-shadow: none;
        background-color: rgba(0,0,0,0.1);
        &-bar{
            font-size: 10px;
            line-height: 1.05em;
            background-color: $primary-bg;
            box-shadow: none
        }
        &-light-base{
            background-color: #fff;
        }
        &-dark-base{
            background-color: rgba(255,255,255,0.2)
        }

    }



    // Sizes
    // ----------------------------------------------
    .progress-xl{@include progress-sizes(30px, 20px, $font-size-base)}
    .progress-lg{@include progress-sizes(20px, 20px, $font-size-base)}
    .progress-md{@include progress-sizes(8px, 5px, 5px)}
    .progress-sm{@include progress-sizes(4px, 5px, 0)}
    .progress-xs{@include progress-sizes(2px, 10px, 0)}


    // Colors
    // ----------------------------------------------
    .progress-bar-light{background-color: #fff}
    .progress-bar-primary{background-color: $primary-bg}
    .progress-bar-info{background-color: $info-bg}
    .progress-bar-success{background-color: $success-bg}
    .progress-bar-warning{background-color: $warning-bg}
    .progress-bar-danger{background-color: $danger-bg}
    @if $enable-mint == true {
        .progress-bar-mint{background-color: $mint-bg}
    }
    @if $enable-purple == true {
        .progress-bar-purple{background-color: $purple-bg}
    }
    @if $enable-pink == true {
        .progress-bar-pink{background-color: $pink-bg}
    }
    @if $enable-dark == true {
        .progress-bar-dark{background-color: $dark-bg}
    }

}




/*======================================*/
/* PAGER */
/*======================================*/
%bspagerdisabled{
    opacity: .7;
    border-color: darken($border-color-base,5%);
    box-shadow: none
}

%bspagerlinkactive{
    box-shadow: inset 0 3px 1px rgba(0, 0, 0, 0.2);
}

%bspagerlinkhover{
    background-color: $light-bg;
    border-color: $state-active-bg;
    color: $state-active-bg;
    box-shadow: inset 0 0 1px $state-active-bg;
    z-index: 2;
    @include transition(border-color, .3s)
}


@if $pager == true {
    .pager{
        li{
            >a{
                &:active{
                    @extend %bspagerlinkactive;
                }
                &:hover,&:focus{
                    @extend %bspagerlinkhover;
                }
            }
            > a, >span{
                border-radius: $border-radius-base;
                border-color: darken($border-color-base, 5%);
            }
        }
        &.pager-rounded{
            li{
                >a, > span{
                    border-radius: 15px;
                }
            }
        }
        .disabled{
            > a, > span{
                &, &:hover, &:focus{
                    opacity: .7;
                    border-color: darken($border-color-base,5%);
                    box-shadow: none
                }
            }
        }
    }
}




/*======================================*/
/* PAGINATION */
/*======================================*/
@if $pagination == true{
    .pagination{
        >li{
            >a, >span{
                color: inherit;
                border-color: darken($border-color-base,5%);
                @include transition(border-color,.3s)
            }
            a {
                &:active{
                    @extend %bspagerlinkactive;
                }
                &:hover,&:focus{
                    @extend %bspagerlinkhover;
                }
            }
            >span{
                cursor: default;
                &:hover{
                    background-color: $light-bg
                }
            }
            &:first-child{
                >a, span{
                    border-top-left-radius: $border-radius-base;
                    border-bottom-left-radius: $border-radius-base;
                }
            }
            &:last-child{
                >a, span{
                    border-top-right-radius: $border-radius-base;
                    border-bottom-right-radius: $border-radius-base;
                }
            }
        }
        >.active{
            >a, >span, >a:hover, >span:hover, >a:focus, >span:focus{
                background-color: $state-active-bg;
                border-color: $state-active-bg;
            }
        }
        .disabled{
            > a, > span{
                &, &:hover, &:focus{
                    @if $pager == false {
                        opacity: .7;
                        border-color: darken($border-color-base,5%);
                        box-shadow: none;
                    }
                    @if $pager == true {
                        //&:extend(.pager .disabled > a);
                        @extend %bspagerdisabled;
                    }
                }
            }
        }
    }
}





/* CAROUSEL                             */
/*======================================*/
@if $carousel == true{
    .carousel{
        &-inner > .item{
            padding-top: 15px;
        }
        &-control{
            &.left, &.right{
                background-image: none;
                background-repeat: no-repeat;
                color: inherit
            }
            &,&:focus{
                font-size: 1em;
                text-shadow: none;
                width: auto;
                padding: 10px;
                top: 0;
                bottom: 0;
                opacity: .5;
                @include transition(opacity .5s)
            }
            &.auto-hide{
                opacity: 0
            }
            &:before{
                content: '';
                display: inline-block;
                height: 100%;
                width: 0;
                vertical-align: middle
            }
            i{
                position: relative;
                top: .25em
            }
        }
        &:hover{
            .carousel-control{
                opacity: 1;
                @include transition(opacity .5s);
            }
        }
        &-indicators{
            &.out{
                bottom: 0;
                + .carousel-inner{
                    padding-bottom: 30px;
                }
            }
            &.square{
                li{
                    border-radius: 1px;
                }
            }
            > .active{
                background-color: transparent;
                box-shadow:inset 0 0 0 50px;
                border-color: transparent
            }
            > li{
                border-color: inherit;
            }
        }
    }
}





/* BLOCKQUOTE */
/*======================================*/
blockquote{
    border-left: 3px solid darken($body-bg, 10%)
}
.bq{
    &-sm{
        font-size: $font-size-base;
    }
    &-open:before, &-close:after{
        color: darken($body-bg, 10%);
        content: '\201C';
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 5em;
        line-height: 0;
        margin: 0 .15em 0 0;
        vertical-align: -0.5em;
    }
    &-close:after{
        content: '\201D';
        margin: 0 0 0 .15em
    }
}



/* FORM */
/*======================================*/
.form-horizontal{
    .control-label{
        margin-bottom: 5px;
        &.text-left{
            text-align: left
        }
    }
}





/* ACCORDION */
/*======================================*/
@if $accordion == true {
    .panel{
        > .panel-heading + .panel-collapse > .panel-body{
            border-top: 0
        }
        &-group{
            margin-bottom: 35px;
            &.accordion{
                .panel{
                    margin-bottom: 0;
                    &-heading{
                        border-radius: 0;
                        height: auto;
                        &:after{
                            border: 0 !important
                        }
                    }
                    &-heading, &-title{
                        padding: 0;
                    }
                    &-title{
                        line-height: 40px;
                        a{
                            display: block;
                            color: inherit;
                            text-transform: none;
                            font-size: $font-size-base;
                            padding: 0 15px;
                            &:hover,&:focus{
                                color: inherit
                            }
                        }
                    }
                    &:first-child{
                        &, .panel-heading{
                            border-top-left-radius: $border-radius-base;
                            border-top-right-radius: $border-radius-base;
                        }
                    }
                    &:last-child{
                        border-bottom-left-radius: $border-radius-base;
                        border-bottom-right-radius: $border-radius-base;
                        overflow: hidden;
                    }
                }
            }
        }
    }
}




/* TAB */
/*======================================*/
@if $tabs == true{
    .tab{
        &-base{
            margin-bottom: 35px;
            .tab-content{
                background-color: $light-bg;
                box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
                border-bottom-left-radius: 2px;
                border-bottom-right-radius: 2px;
                padding: 15px;
                .tab-footer{
                    background-color: lighten($body-bg,3%);
                    color: $body-color;
                    border-color: lighten($body-bg,1%);
                    position: relative;
                    margin: 0 -15px -15px -15px;
                    padding: 10px 15px
                }
            }
            .nav-tabs{
                border: 0;
                > li{
                    margin-bottom: -2px
                }
                >li:not(.active){
                    >a{
                        background-color: rgba(0, 0, 0, 0.05);
                        opacity: .7;
                        @include transition(opacity,.3s);
                        &:hover{
                            opacity: .9;
                            background-color: rgba(255, 255, 255, 0.55);
                            border-bottom-color: transparent;
                            @include transition(opacity,.3s);
                        }
                    }
                }
                > .active{
                    > a, a:hover, > a:focus{
                        border-color: transparent
                    }
                }
                &.tabs-right{
                    text-align: right;
                    > li {
                        float: none;
                        display: inline-block;
                        margin-right: -2px;
                    }
                }
            }
        }
        &-footer:after{
            content: '';
            display: table;
            clear: both
        }

    }

    .nav-tabs{
        li a{
            border-radius: $border-radius-base $border-radius-base 0 0
        }
        &.tab-right{
            text-align: right;
            >li{
                display: inline-block;
                text-align: left;
                float: none;
                >a {
                    margin-right: 0
                }
            }
        }
        .label, .badge{
            margin-left: 4px
        }
    }


    .tab-stacked{
        &-left, &-right{
            display: table;
            height: 100%;
            width: 100%;
            & .nav-tabs{
                >li{
                    float: none;
                    margin: 0;
                    >a{
                        margin: 0 0 2px;
                    }
                    &:last-child{
                        > a{
                            margin-bottom: 0;
                        }
                    }
                }
            }
            & .nav-tabs, & .tab-content{
                display: table-cell;
                vertical-align: top
            }
            .tab-content{
                overflow: hidden;
            }
        }
        &-left{
            .nav-tabs{
                width: 1%;
                border: 0;
                >li{
                    a{
                        border-right-color: transparent;
                        border-radius: $border-radius-base 0 0 $border-radius-base
                    }
                }
                >.active{
                    >a{
                        &:hover, &:focus{
                            border-right-color: transparent;
                        }
                    }
                }

            }
            &.tab-base{
                .nav-tabs{
                    >li:not(.active){
                        a{
                            &:hover{
                                border-right-color: transparent;
                            }
                        }
                    }
                }
            }
            .tab-content{
                border-left-color: transparent;
                border-radius: 0 $border-radius-base $border-radius-base 0;
            }
        }
        &-right{
            .nav-tabs{
                width: 1%;
                border: 0;
                >li{
                    a{
                        border-left-color: transparent;
                        border-radius: 0 $border-radius-base $border-radius-base 0
                    }
                }
                >.active{
                    >a{
                        &:hover, &:focus{
                            border-left-color: transparent;
                        }
                    }
                }
            }
            &.tab-base{
                .nav-tabs{
                    >li:not(.active){
                        a{
                            &:hover{
                                border-left-color: transparent;
                            }
                        }
                    }
                }
            }
            .tab-content{
                border-right-color: transparent;
                border-radius: $border-radius-base 0 0 $border-radius-base
            }
        }
    }
}







/* BACKGROUND */
/*======================================*/

@mixin bg-variant($color, $background){
    background-color: $background;
    &, & a{
        color: $color;
    }
}

@if $bg == true {
    .bg-trans{
        background-color: transparent
    }
    .bg-light{@include bg-variant($light-color, $light-bg)}
    .bg-gray-light{@include bg-variant($gray-color, lighten($gray-bg,5%))}
    .bg-gray{@include bg-variant($gray-color, $gray-bg)}
    .bg-gray-dark{@include bg-variant($gray-color, darken($gray-bg,10%))}
    .bg-trans-light{@include bg-variant(inherit, rgba(255,255,255,.1))}
    .bg-trans-dark{@include bg-variant(inherit, rgba(0,0,0,.05))}

    .bg-primary{@include bg-variant($primary-color, $primary-bg)}
    .bg-info{@include bg-variant($info-color, $info-bg)}
    .bg-success{@include bg-variant($success-color, $success-bg)}
    .bg-warning{@include bg-variant($warning-color, $warning-bg)}
    .bg-danger{@include bg-variant($danger-color, $danger-bg)}

    @if $enable-mint == true {
        .bg-mint{@include bg-variant($mint-color, $mint-bg)}
    }
    @if $enable-purple == true {
        .bg-purple{@include bg-variant($purple-color, $purple-bg)}
    }
    @if $enable-pink == true {
        .bg-pink{@include bg-variant($pink-color, $pink-bg)}
    }
    @if $enable-dark == true {
        .bg-dark{@include bg-variant($dark-color, $dark-bg)}
    }

}








/* TEXT */
/*======================================*/

@mixin text-color-variant($color){
    @at-root {
        &, a#{&}:hover, a#{&}:focus{
            color : darken($color,20%)
        }
    }
}

@if $txt == true {
    .text-light, a.text-light:hover, a.text-light:focus{
        color : $light-bg
    }
    .text-muted{@include text-color-variant(lighten($text-muted,20%))}
    .text-primary{@include text-color-variant($primary-bg)}
    .text-info{@include text-color-variant($info-bg)}
    .text-success{@include text-color-variant($success-bg)}
    .text-warning{@include text-color-variant($warning-bg)}
    .text-danger{@include text-color-variant($danger-bg)}
    .text-main{
         @at-root {
            &, a#{&}:hover, a#{&}:focus{
                color : $body-main-color
            }
        }
    }

    @if $enable-mint == true {
        .text-mint{@include text-color-variant($mint-bg)}
    }
    @if $enable-purple == true {
        .text-purple{@include text-color-variant($purple-bg)}
    }
    @if $enable-pink == true {
        .text-pink{@include text-color-variant($pink-bg)}
    }
    @if $enable-dark == true {
        .text-dark{@include text-color-variant($dark-bg)}
    }

}




/* BUTTONS */
/*======================================*/

// Mixin
// ------------------------------------
@mixin btn-border($bg){
    @if lightness($bg) >= 70%{
        border-color: darken($gray-bg, 7%);
    }@else{
        border-color: $bg;
    }
}

@mixin btn-variant($color, $background){
    &-basic, &, &:focus, &.disabled:hover, &:disabled:hover{
        background-color: darken($background, 2.5%);
        @include btn-border($background);
        color: $color;
    }

    @at-root{
        &:hover, &:active, &.active,
        .open > .dropdown-toggle#{&}{
            background-color: darken($background, 9%);
            @include btn-border(darken($background,7%));
            color: $color;
        }
    }
}


@if $buttons == true {

    .btn {
        cursor: pointer;
        background-color: transparent;
        color: inherit;
        padding: 6px 12px;
        border-radius: $border-radius-base;
        border: 1px solid transparent;
        font-size: $font-size-base;
        line-height: 1.42857;
        vertical-align: middle;
        @include transition(all .25s)
    }

    .btn:not(.disabled):not(:disabled):active,
    .btn:not(.disabled):not(:disabled).active {
        box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
    }


    /* Button Sizes */
    /*---------------------------------*/
    .btn-lg{
        font-size: $font-size-base + 4;
        line-height: 1.33
    }
    .btn-sm{
        font-size: $font-size-base - 2;
        line-height: 1.5
    }
    .btn-xs{
        font-size: $font-size-base - 2;
        line-height: 1.5
    }






    /* Button Icon */
    /*---------------------------------*/
    @if $include-btn-icon == true {
        .btn-icon{
            padding-left: 9px;
            padding-right: 9px;
            > i, &:before{
                display: inline-block;
                min-width: 1.05em
            }
        }
        .btn-icon{
            &.btn-xs{
                @extend .btn-xs;
            }
            &.btn-sm{
                @extend .btn-sm;
            }
            &.btn-lg{
                @extend .btn-lg;
            }
        }
    }





    /* Button File */
    /*---------------------------------*/
    .btn-file {
        position: relative;
        overflow: hidden;
        input[type=file] {
            position: absolute;
            top: 0;
            right: 0;
            min-width: 100%;
            min-height: 100%;
            font-size: 100px;
            text-align: right;
            filter: alpha(opacity=0);
            opacity: 0;
            outline: none;
            background: white;
            cursor: inherit;
            display: block;
        }
    }


    /* Button Link */
    /* --------------------------------- */
    .btn-link{
        border-color: transparent;
        @at-root .btn#{&}{
            &:focus, &:active{
                box-shadow: none
            }
        }
        &.disabled{
            &:hover, &:focus{
                text-decoration: none
            }
        }
    }




    /* Button Transparent */
    /*---------------------------------*/
    .btn-trans{
        background-color: transparent;
        border-color: transparent;
        color: lighten($body-color, 20%);
        &:focus, &:active{
            box-shadow: none !important
        }
    }




    // Buttons Variant
    // ------------------------------------
    .btn-default{@include btn-variant($light-color, $light-bg)}
    .btn-primary{@include btn-variant($primary-color, $primary-bg)}
    .btn-info{@include btn-variant($info-color, $info-bg)}
    .btn-success{@include btn-variant($success-color, $success-bg)}
    .btn-warning{@include btn-variant($warning-color, $warning-bg)}
    .btn-danger{@include btn-variant($danger-color, $danger-bg)}
    @if $enable-mint == true {
        .btn-mint{
            @include btn-variant($mint-color, $mint-bg);
        }
    }
    @if $enable-purple == true {
        .btn-purple{
            @include btn-variant($purple-color, $purple-bg);
        }
    }
    @if $enable-pink == true {
        .btn-pink{
            @include btn-variant($pink-color, $pink-bg);
        }
    }
    @if $enable-dark == true {
        .btn-dark{
            @include btn-variant($dark-color, $dark-bg);
        }
    }




    // Buttons Hover
    // ------------------------------------
    @if $include-btn-hover == true {
        .btn-hover-default{
            &:hover, &:active, &.active{ @extend .btn-default:focus; }
        }
        .btn-hover-primary{
            &:hover, &:active, &.active{ @extend .btn-primary:focus; }
        }
        .btn-hover-info{
            &:hover, &:active, &.active{ @extend .btn-info:focus; }
        }
        .btn-hover-success{
            &:hover, &:active, &.active{ @extend .btn-success:focus; }
        }
        .btn-hover-warning{
            &:hover, &:active, &.active{ @extend .btn-warning:focus; }
        }
        .btn-hover-danger{
            &:hover, &:active, &.active{ @extend .btn-danger:focus; }
        }
        @if $enable-mint == true {
            .btn-hover-mint{
                &:hover, &:active, &.active{ @extend .btn-mint:focus; }
            }
        }
        @if $enable-purple == true {
            .btn-hover-purple{
                &:hover, &:active, &.active{ @extend .btn-purple:focus; }
            }
        }
        @if $enable-pink == true {
            .btn-hover-pink{
                &:hover, &:active, &.active{ @extend .btn-pink:focus; }
            }
        }
        @if $enable-dark == true {
            .btn-hover-dark{
                &:hover, &:active, &.active{ @extend .btn-dark:focus; }
            }
        }
    }




    // Pressed Buttons / Active
    // ------------------------------------
    @if $include-btn-active == true {
        .btn.btn-active-default{
            &:active, &.active, .dropdown.open > &{
                @extend .btn-default:focus;
            }
        }
        .btn-group.open .dropdown-toggle.btn.btn-active-default{
            @extend .btn-default:focus;
        }


        .btn.btn-active-primary{
            &:active, &.active, .dropdown.open > &{
                @extend .btn-primary:focus;
            }
        }
        .btn-group.open .dropdown-toggle.btn.btn-active-primary{
            @extend .btn-primary:focus;
        }

        .btn.btn-active-info{
            &:active, &.active, .dropdown.open > &{
                @extend .btn-info:focus;
            }
        }
        .btn-group.open .dropdown-toggle.btn.btn-active-info{
            @extend .btn-info:focus;
        }
        .btn.btn-active-success{
            &:active, &.active, .dropdown.open > &{
                @extend .btn-success:focus;
            }
        }
        .btn-group.open .dropdown-toggle.btn.btn-active-success{
            @extend .btn-success:focus;
        }
        .btn.btn-active-warning{
            &:active, &.active, .dropdown.open > &{
                @extend .btn-warning:focus;
            }
        }
        .btn-group.open .dropdown-toggle.btn.btn-active-warning{
            @extend .btn-warning:focus;
        }
        .btn.btn-active-danger{
            &:active, &.active, .dropdown.open > &{
                @extend .btn-danger:focus;
            }
        }
        .btn-group.open .dropdown-toggle.btn.btn-active-danger{
            @extend .btn-danger:focus;
        }
        @if $enable-mint == true {
            .btn.btn-active-mint{
                &:active, &.active, .dropdown.open > &{
                    @extend .btn-mint:focus;
                }
            }
            .btn-group.open .dropdown-toggle.btn.btn-active-mint{
                @extend .btn-mint:focus;
            }
        }
        @if $enable-purple == true {
            .btn.btn-active-purple{
                &:active, &.active, .dropdown.open > &{
                    @extend .btn-purple:focus;
                }
            }
            .btn-group.open .dropdown-toggle.btn.btn-active-purple{
                @extend .btn-purple:focus;
            }
        }
        @if $enable-pink == true {
            .btn.btn-active-pink{
                &:active, &.active, .dropdown.open > &{
                    @extend .btn-pink:focus;
                }
            }
            .btn-group.open .dropdown-toggle.btn.btn-active-pink{
                @extend .btn-pink:focus;
            }
        }
        @if $enable-dark == true {
            .btn.btn-active-dark{
                &:active, &.active, .dropdown.open > &{
                    @extend .btn-dark:focus;
                }
            }
            .btn-group.open .dropdown-toggle.btn.btn-active-dark{
                @extend .btn-dark:focus;
            }
        }
    }




    .btn-group-vertical .btn:not(.btn-default),
    .btn-group .btn:not(.btn-default){
        border-color: rgba(0,0,0,0.09)
    }


    .btn-lg, .btn-group-lg > .btn {
        padding: 10px 16px;
    }
    .btn-sm, .btn-group-sm > .btn {
        padding: 5px 10px;
    }

    .btn-xs, .btn-group-xs > .btn {
        padding: 1px 5px;
    }

    .btn-lg, .btn-group-lg > .btn{
        border-radius: $border-radius-base
    }

    .btn-lg, .btn-group-sm > .btn,
    .btn-lg, .btn-group-xs > .btn{
        border-radius: $border-radius-base
    }

    .btn-group-vertical {
        > .btn:first-child:not(:last-child){
            border-top-left-radius: $border-radius-base;
            border-top-right-radius: $border-radius-base
        }
        > .btn:last-child:not(:first-child){
            border-bottom-left-radius: $border-radius-base;
            border-bottom-right-radius: $border-radius-base
        }
    }





    /* Button Circle */
    /*---------------------------------*/
    @if $include-btn-circle {
        .btn-circle{
            padding: 7px;
            border-radius: 50%
        }
        .btn-lg.btn-circle {
            padding: 17px;
        }
        .btn-sm.btn-circle {
            padding: 7px;
        }
        .btn-xs.btn-circle {
            padding: 4px;
        }
        .btn-icon.btn-circle > i,
        .btn-icon.btn-circle:before{
            display: block;
            width: 1.4em;
            height: 1.4em;
            line-height: 1.4
        }
    }



    /* Button Rounded */
    /*---------------------------------*/
    @if $include-btn-rounded == true {
        .btn-rounded{
            border-radius: 17px;
            overflow: hidden
        }
        .btn-lg.btn-rounded{
            border-radius: 30px
        }
        .btn-sm.btn-rounded{
            border-radius: 15px
        }
        .btn-xs.btn-rounded{
            border-radius: 10px
        }
        .btn-group.btn-rounded{
            overflow: hidden
        }
    }


    /* Button Labeled */
    /*---------------------------------*/
    @if $include-btn-labeled == true {
        .btn-labeled,
        .btn-labeled.fa{
            overflow: hidden;
        }
        .btn-labeled:not(.btn-block):not(.form-icon) {
            font-family: inherit;
            font-size: $font-size-base;
            line-height: 1.42857;
            padding-bottom: 0;
            padding-top: 0;
        }
        .btn-block.btn-labeled:not(.form-icon) {
            font-family: inherit;
            font-size: $font-size-base;
            line-height: 1.42857;
        }
        .btn-block.btn-labeled:not(.form-icon):before {
            float: left;
            margin-top: -7px;
            margin-bottom: -7px;
        }
        .btn-labeled .btn-label {
            background-color: rgba(0, 0, 0, .05);
            display: inline-block;
            margin-left: -12px;
            margin-right: 6px;
            padding: 6px 12px;
            line-height: 1.42857;
        }

        .btn-labeled:before{
            background-color: rgba(0, 0, 0, .1);
            display: inline-block;
            margin-left: -12px;
            margin-right: 6px;
            padding: 6px 12px;
            line-height: 1.42857;
        }
        .btn-labeled.fa:before,
        .btn-labeled .fa:before{
            font-family: fontAwesome;
        }
        .btn-default.btn-labeled:before,
        .btn-default .btn-label{
            background-color: rgba(0,0,0,.05);
            color: inherit
        }
        .btn-lg.btn-labeled{
            font-size: 18px;
            line-height: 1.33
        }
        .btn-sm.btn-labeled{
            font-size: 12px;
            line-height: 1.5
        }
        .btn-xs.btn-labeled{
            font-size: 12px;
            line-height: 1.5
        }

        .btn-lg.btn-labeled:before,
        .btn-lg .btn-label{
            margin-left: -16px;
            margin-right: 10px;
            padding: 10px 16px
        }

        .btn-lg.btn-block.btn-labeled:not(.form-icon):before {
            margin-top: -10px;
            margin-bottom: -10px;
        }

        .btn-sm.btn-labeled:before,
        .btn-sm .btn-label{
            margin-left: -10px;
            margin-right: 5px;
            padding: 5px 10px
        }

        .btn-sm.btn-block.btn-labeled:not(.form-icon):before {
            margin-top: -5px;
            margin-bottom: -5px;
        }

        .btn-xs.btn-labeled:before,
        .btn-xs .btn-label{
            margin-left: -5px;
            margin-right: 1px;
            padding: 1px 5px
        }

        .btn-xs.btn-block.btn-labeled:not(.form-icon):before {
            margin-top: -1px;
            margin-bottom: -1px;
        }


        .btn-labeled.icon-2x:before,
        .btn-labeled .btn-label.icon-2x:before{
            vertical-align: -.15em
        }

        .btn-labeled.icon-3x:before,
        .btn-labeled .btn-label.icon-3x:before{
            vertical-align: -.18em
        }

        .btn-labeled.icon-4x:before,
        .btn-labeled .btn-label.icon-4x:before{
            vertical-align: -.20em
        }

        .btn-labeled.icon-5x:before,
        .btn-labeled .btn-label.icon-5x:before{
            vertical-align: -.25em
        }

    }
}




/* PANELS */
/*======================================*/

// Mixin
//---------------------------------
@mixin panel-variant($color, $background){
    & .panel-heading,
    & .panel-footer,
    &.panel-colorful{
        background-color: $background;
        border-color: $background;
        color: $color;
    }
}

@if $panels == true {
    .panel{
        border-radius: $border-radius-base;
        border: 1px solid darken($body-bg, 1.4%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.17);
        margin-bottom: $grid-gutter-width;
        hr{
            border-color: rgba(0,0,0,.1);
        }
        .panel-bg-cover{
            max-height: 180px;
            overflow: hidden;
            img{
                min-width: 100%;
                min-height: 100%;
                background-size: cover
            }
        }
        &.remove{
            opacity: 0;
            @include transition(opacity,.5s);
        }
        .alert{
            border-radius: 0
        }
    }


    .panel {
        &.panel-bg-img{
            position: relative;
        }
        .panel-bg-wrap {
            overflow: hidden;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            > img{
                position: absolute;
                top: 0;
                left: 0;
            }
            + .panel-body{
                position: relative
            }
        }
    }



    .panel-media{
        box-shadow: 0 -50px 20px -10px rgba(0, 0, 0, 0.2);
        padding: 10px 15px 15px 140px;
        position: relative;
        &-img{
            position: absolute;
            width: 96px;
            height: 96px;
            left: 20px;
            top: -48px;
        }
        &-heading{
            color: #fff;
            position: absolute;
            top: -2.7em
        }
    }




    .panel .panel-heading,
    .panel > :first-child{
        border-top-left-radius: max(0px, $border-radius-base - 1px);
        border-top-right-radius: max(0px, $border-radius-base - 1px);
    }
    .panel .panel-footer,
    .panel > :last-child{
        border-bottom-left-radius: max(0px, $border-radius-base - 1px);
        border-bottom-right-radius: max(0px, $border-radius-base - 1px);
    }
    .panel-body-full{
        margin-left: -20px;
        margin-right: -20px;
    }
    .panel-body{
        padding: 15px 20px 25px;
        > .row, > [class^="form-"] > .row{
            margin: 0;
            > [class^="col-"]{
                &:first-child{
                    padding-left: 0 !important
                }
                &:last-child{
                    padding-right: 0 !important
                }
            }
        }
    }

    .panel-body > .row {
        > .col-xs-12, > .col-sm-12, > .col-md-12, > .col-lg-12{
            padding-right: 0
        }
    }

    @media (min-width: 768px){
        .panel-body > .row {
            > .col-sm-12 + .col-sm-12 {
                padding-left: 0
            }
            > [class*="col-sm-"]:not(.col-sm-12) {
                padding-left: $grid-gutter-width/2;
                padding-right: $grid-gutter-width/2
            }
        }
    }

    @media (min-width: 992px){
        .panel-body > .row {
            > .col-md-12 + .col-md-12 {
                padding-left: 0
            }
            > [class*="col-md-"]:not(.col-md-12) {
                padding-left: $grid-gutter-width/2;
                padding-right: $grid-gutter-width/2
            }
        }
    }

    @media (max-width: 991px){
        .panel-body > .row {
            > .col-sm-12 + [class*="col-"] {
                padding-left: 0 !important
            }
            > [class*="col-md"], > [class*="col-lg"] {
                padding-left: 0;
                padding-right: 0
            }
        }
    }

    @media (max-width: 1199px){
        .panel-body > .row {
            > .col-md-12 + [class*="col-"] {
                padding-left: 0 !important
            }
            > [class*="col-lg"] {
                padding-left: 0;
                padding-right: 0
            }
        }
    }

    @media (min-width: 1200px){
        .panel-body > .row {
            > .col-lg-12 + [class*="col-"] {
                padding-left: 0
            }
            > [class*="col-lg-"]:not(.col-lg-12) {
                padding-left: $grid-gutter-width/2;
                padding-right: $grid-gutter-width/2
            }
        }
    }

    .panel-trans{
        border-color: transparent;
        box-shadow: none;
        background-color: transparent
    }
    .panel-heading{
        position: relative;
        height: $panel-heading-height;
        padding: 0;
        color: $panel-default-head-color
    }
    .panel-title{
        font-weight: $font-semibold;
        padding: 0 20px 0 20px;
        font-size: 1.2em;
        line-height: $panel-heading-height;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }





    .panel-default.panel-colorful{
        background-color: darken($gray-bg,1%);
        color: $gray-color;
    }

    .panel-default .panel-heading{
        background-color: darken($gray-bg,1%);
        border-color: lighten($gray-bg,4%);
    }

    .panel-footer{
        background-color: lighten($body-bg,3%);
        color: $body-color;
        border-color: rgba(0, 0, 0, 0.07);
        position: relative
    }




    /* Colors */
    /*---------------------------------*/
    .panel-primary{@include panel-variant($primary-color, $primary-bg)}
    .panel-info{@include panel-variant($info-color, $info-bg)}
    .panel-success{@include panel-variant($success-color, $success-bg)}
    .panel-warning{@include panel-variant($warning-color, $warning-bg)}
    .panel-danger{@include panel-variant($danger-color, $danger-bg)}
    @if $enable-mint == true {
        .panel-mint{@include panel-variant($mint-color, $mint-bg)}
    }
    @if $enable-purple == true {
        .panel-purple{@include panel-variant($purple-color, $purple-bg)}
    }
    @if $enable-pink == true {
        .panel-pink{@include panel-variant($pink-color, $pink-bg)}
    }
    @if $enable-dark == true {
        .panel-dark{@include panel-variant($dark-color, $dark-bg)}
    }





    .panel > .panel-heading:after,
    .panel.panel-colorful > .panel-heading:after{
        content: '';
        display: block;
        position: absolute;
        height: 0;
        left: 0;
        right: 0;
        border-bottom: 1px solid rgba(0,0,0,.07)
    }
    .panel-colorful > .panel-heading{
        border: 0
    }
    .panel-default > .panel-heading:after, .panel-primary > .panel-heading:after, .panel-info > .panel-heading:after,
    .panel-success > .panel-heading:after, .panel-warning > .panel-heading:after, .panel-danger > .panel-heading:after,
    .panel-purple > .panel-heading:after, .panel-pink > .panel-heading:after, .panel-dark > .panel-heading:after{
        display: none
    }



    /* Bordered */
    /*---------------------------------*/
    .panel-bordered-default, .panel-default.panel-bordered{
        border: 1px solid darken($gray-bg, 15%)
    }
    .panel-bordered-primary, .panel-primary.panel-bordered{
        border: 1px solid $primary-bg
    }
    .panel-bordered-info, .panel-info.panel-bordered{
        border: 1px solid $info-bg
    }
    .panel-bordered-success, .panel-success.panel-bordered{
        border: 1px solid $success-bg
    }
    .panel-bordered-warning, .panel-warning.panel-bordered{
        border: 1px solid $warning-bg
    }
    .panel-bordered-danger,	.panel-danger.panel-bordered{
        border: 1px solid $danger-bg
    }
    @if $enable-mint == true {
        .panel-bordered-mint, .panel-mint.panel-bordered{
            border: 1px solid $mint-bg
        }
    }
    @if $enable-purple == true {
        .panel-bordered-purple, .panel-purple.panel-bordered{
            border: 1px solid $purple-bg
        }
    }
    @if $enable-pink == true {
        .panel-bordered-pink, .panel-pink.panel-bordered{
            border: 1px solid $pink-bg
        }
    }
    @if $enable-dark == true {
        .panel-bordered-dark, .panel-dark.panel-bordered{
            border: 1px solid $dark-bg
        }
    }






    /* Panel Group */
    /*---------------------------------*/
    .panel-group{
        .panel{
            border-radius: 0;
            margin-bottom: 20px
        }
        > div{
            padding-left: 0;
            padding-right: 0;
            &:first-child > .panel{
                border-top-left-radius: 2px;
                border-bottom-left-radius: 2px;
            }
            &:last-child > .panel{
                border-top-right-radius: 2px;
                border-bottom-right-radius: 2px;
            }
            + div > .panel{
                margin-left: -1px
            }
        }
    }





    /* Panel Control */
    /*---------------------------------*/
    .panel-control{
        height: 100%;
        position: relative;
        float: right;
        padding: 0 15px;
        &:before{
            content: '';
            display: inline-block;
            height: 100%;
            vertical-align: middle;
            left: -1em;
            position: relative;
        }
        .btn{
            padding-left: 7px;
            padding-right: 7px;
        }
        > i,
        > .badge ,
        > label {
            vertical-align: middle
        }
        > .toggle-switch + label{
            vertical-align: baseline
        }
    }






    /* Panel with tabs */
    /*---------------------------------*/
    @if $panel-w-tabs == true {
        $max-tabs-height : 40px;
        .panel-control{
            .nav-tabs{
                @if $panel-heading-height > $max-tabs-height{
                    display: inline-block;
                    height: $max-tabs-height;
                    margin-top: $panel-heading-height - $max-tabs-height;
                    vertical-align: bottom;
                }
                @if $panel-heading-height <= $max-tabs-height{
                    height: 100%;
                    margin-top: -1px;
                }
                border: 0;
                > li{
                    margin-top: 1px;
                    margin-right: 5px;
                    height: 100%;
                    > a{
                        border-radius: 0;
                        margin-right: 0;
                        height: 100%;
                        @if $panel-heading-height > $max-tabs-height{
                            line-height: $max-tabs-height;
                            border-top-left-radius: $border-radius-base;
                            border-top-right-radius: $border-radius-base;
                        }
                        @if $panel-heading-height <= $max-tabs-height{
                            line-height: $panel-heading-height;
                        }
                        padding: 0 15px
                    }
                    &:not(.active){
                        background-color: transparent;
                        opacity: .6;
                        a{
                            border-bottom: 0 !important;
                            color: inherit;
                            &:hover{
                                background-color: rgba(0,0,0,.15);
                                border-color: transparent
                            }
                        }
                    }
                }
                > .active > a{
                    z-index: 1;
                }
            }
        }


        @if $panel-heading-height <= $max-tabs-height{
            .panel-control .nav-tabs > li:last-child.active > a{
                &, &:hover, &:focus{
                    border-right-color: transparent;
                    border-top-right-radius: $border-radius-base
                }
            }
        }

    }





    /* Panel with progress bar */
    /*---------------------------------*/
    @if $panel-w-progressbar == true {
        //With Progress Bar
        .panel-control .progress{
            min-width: 150px;
            margin: 0;
            display: inline-block;
            vertical-align: middle;
        }
    }



    /* Panel with switch */
    /*---------------------------------*/
    .panel-control .switchery{
        margin-left: 15px;
        vertical-align: middle
    }



    /* Panel with pager */
    /*---------------------------------*/
    @if $panel-w-pager == true {
        .panel-control .pager{
            margin: 0;
            display: inline-block;
            vertical-align: middle;
            border-radius: 0;
        }
    }


    /* Panel with pagination */
    /*---------------------------------*/
    @if $panel-w-pagination == true {
        .panel-control .pagination{
            margin: 0;
            border-radius: 0;
            vertical-align: middle;
            > li{
                > a, > span{
                    padding: 0 10px;
                    border: $border-radius-base $border-radius-base 0 0;
                    border-color: rgba(0,0,0,.09);
                    box-shadow: none;
                    height: 100%;
                    line-height: 30px;
                }
                &:not(.active):not(.disabled) > a:hover{
                    background-color: rgba(0,0,0,0.05);
                    border-color: rgba(0,0,0,.09);
                }
            }
            > .disabled > a{
                &, &:hover, &:active{
                    border-color: rgba(0,0,0,.09);
                }
            }
        }
        .panel-control .pagination > li:not(.active) > a, .pagination > li > a{
            background-color: transparent;
            color: inherit;
        }
        .panel-control .pagination > li > a:hover, .pagination > li > a:focus{
            box-shadow: none;
        }
    }




    /* Panel with pagination */
    /*---------------------------------*/
    @if $panel-w-btn == true {
        .panel-control .btn,
        .panel-control .dropdown-toggle.btn{
            border: 0;
        }
        .panel-control .open > .btn,
        .panel-control .btn.active,
        .panel-control .btn:active{
            box-shadow: none !important
        }
        .panel-control .btn-default{
            background-color: transparent;
            color: inherit
        }
        .panel-control > .btn:first-child{
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }
        .panel-control > .btn:last-child,
        .panel-control > .btn-group:last-child > .btn:first-child{
            border-bottom-right-radius: 0
        }
    }
}


